package com.admin.controller;
import javax.servlet.http.HttpSession;
import javax.validation.Valid;
import javax.websocket.Session;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;

import com.admin.service.BackgroundService;
import com.bean.User;
import com.user.service.UserService;
@Controller
public class BackgroundController {
@Autowired
    private BackgroundService backgroundserviceimpg;
	@RequestMapping("/getUser")
	public String getUser(Model model) {
	return backgroundserviceimpg.getUser(model);
	}
	@RequestMapping("/delUser")
	public String delUser(User user,Model model) {
	return backgroundserviceimpg.delUser(user,model);
	}
	@RequestMapping("/AdminSelectCommon")
	public String AdminSelrctCommon(Model model) {
	return backgroundserviceimpg.AdminSelectCommon(model);
	}
	@RequestMapping("/AdminDeleteCommon")
	public String AdminDeleteCommon(int common_id,Model model) {
	return backgroundserviceimpg.AdminDeleteCommon(common_id,model);
	}
}
